<?
//引入所有子系统信息
include_once("../../../common/model/extender_import.php");

    //**获取当前板块资料，必然载入，后续很多读取板块数据库的表格，都写成动态的了。
    $_plate=$plate['order'];


$system_part = 'order';


    //**获取板块的设置，必然载入
    include_once("../model/setting.php");


    //根据筛选框传递过来的内容，组装查找语句
    include_once("script/set_condition.php");


    //根据页面信息，组装查找语句
    //include_once("script/set_page.php");


    //根据页面数量信息，筛选信息，创造url，供页码使用
    include_once("script/set_url.php");
    include_once("script/set_order.php");


    //这个需要放在开头，不然set condition会失效
    if(!$_REQUEST['lessequal_ondate']){
        $_REQUEST['lessequal_ondate'] = date("Y-m-d", strtotime("+5 days"));
    }
    if(!$_REQUEST['greaterequal_ondate']){
        //+7日
        $_REQUEST['greaterequal_ondate']=date("Y-m-d");
    }




    //查看符合日期的订单当中，有哪些产
    $product_list=select_lines_all_items($table_prefix."order_detail","nid asc",
        "status = '正常' and
        ondate >= '{$_REQUEST['greaterequal_ondate']} 00:00:00' and
        ondate <= '{$_REQUEST['lessequal_ondate']} 23:59:59'
                  group by product_name ","");

 


?>

